home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 10
/
FM Towns Free Software Collection 10.iso
/
ms_dos
/
tool
/
fapxtool
/
src
/
txm
/
txmswchk.c
< prev
Wrap
C/C++ Source or Header
|
1995-01-06
|
796b
|
44 lines
/***************
*
* txm\txmswchk.c
*/
#include "txm.h"
/* オプションチェック */
void swchk(int count, char **val)
{
int i;
/* printf("swchk()\n"); */
for (i = 0; val[i] != NULL; i++) {
if (val[i][0] == '-') {
val[i][1] = tolower(val[i][1]);
switch(val[i][1]) {
case '@':
strcpy(txmdir, &(val[i][2]));
break;
case 'a':
nextmerge = 1;
nextvalue = atoi(&(val[i][2]));
break;
case 'l':
strcpy(logfile, &(val[i][2]));
break;
case 'm':
nextmerge = 2;
nextvalue = 0;
break;
case 'r':
minrun = atoi(&(val[i][2]));
maxrun = atoi(strchr(&(val[i][2]), '-')+1);
break;
case 's':
nextmerge = 0;
nextvalue = atoi(&(val[i][2]));
nextvalue *= 1024;
break;
}
}
}
}